<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="https://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>订单列表 - Powered By 微米荟商城</title>  <link rel="icon" href="/template/pc1/images/wmh_favicon.ico" type="image/x-icon" />
<meta name="Author" content="Meida Team" />
<meta name="Copyright" content="Meida" />
<link rel="icon" href="/template/pc1/images/wmh_favicon.ico" type="image/x-icon" />
<% include("include.html"){}%>
<link href="/template/pc1/css/login.css" rel="stylesheet" type="text/css" />
<link href="/template/pc1/css/register.css" rel="stylesheet" type="text/css" />
<link href="/template/pc1/css/member_center.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/template/pc1/js/login.js"></script>
<script type="text/javascript" src="/template/pc1/js/register.js"></script>
</head>
<body class="memberCenter">
<%include("header_index_sys.html"){}%>
	<div class="body orderList">
		<div class="bodyLeft">
			<div class="memberInfo">
				<div class="top"></div>
				<div class="middle">
					<p>欢迎您！<span class="username">${loginMember.username!}</span> [<a class="userLogout" href="/b/memberCenter/logout">退出</a>]</p>
					<p>会员等级:<span class="red"> ${loginMember.memberRank.name!}</span></p>
				</div>
				<div class="bottom"></div>
			</div>
			<div class="blank"></div>
			<!-- 侧边栏 -->
            <%include("sidebar_customer.html"){}%>
		</div>
		<div class="bodyRight">
			<div class="memberCenterDetail">
				<div class="top">订单列表</div>
				<div class="middle">
					<div class="blank"></div>
					<table class="listTable">
						<tr>
							<th style="width: 300px;">商品名称</th>
							<th>订单编号</th>
							<th>下单时间</th>
							<th>订单金额</th>
							<th>订单状态</th>
						</tr>
						<%for(list in pager.list){%>
							<tr>
								<td>
									<a href="/b/pc/order/view?id=${list.id}&shopId=${shopId!}">
											<%for(itemList in list.orderItemList!){%>
												${itemList.productName}
												<%if ((itemListLP.index == 3) && (itemListLP.last)){%>
													...<%break;%>
												<%}%>
											<%}%>
										</span>
									</a>
								</td>
								<td>
									<a href="/b/pc/order/view?id=${list.id}&shopId=${shopId!}">${list.orderSn}</a>
								</td>
								<td width="156px">
									<span title="${list.createDate,dateFormat='MM-dd HH:mm:ss'}">${list.createDate,dateFormat="yyyy-MM-dd HH:mm:ss"}</span>
								</td>
								<td>
									${list.totalAmount,orderUnitCurrencyFormat}
								</td>
								<td>
									<%if (list.orderStatusValue != "processed" && list.orderStatusValue != "unprocessed"){%>
										<p>[${i18n("OrderStatus." + list.orderStatusValue)}]</p>
									<%}%>
									<p>[${i18n("PaymentStatus." + list.paymentStatusValue)}]</p>
									<p>[${i18n("ShippingStatus." + list.shippingStatusValue)}]</p>
								</td>
							</tr>
						<%}%>
					</table>
					<div class="blank"></div>
         			<link href="/template/pc1/css/pager.css" rel="stylesheet" type="text/css" />
         			<%include("pager.html", {"pageNumber":pager.pageNumber,"pageSize":pager.pageSize,"pageCount":pager.totalPage,"property":"","keyword":"无","orderBy":"","orderType":"","baseUrl":"/b/pc/order/list"}) {}%>
				</div>
				<div class="bottom"></div>
			</div>
		</div>
		<div class="blank"></div>
	</div>
	<div class="blank"></div>
	<%include("footer.html"){}%>
</body>
</html>